﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TPAdministracion.ws;

namespace TPAdministracion.Forms
{
    public partial class ComisionAgregar : Form
    {
        public ComisionAgregar()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            ws.comision com = new ws.comision();
            com.porcentaje= float.Parse(this.tbValor.Text.ToString());
            ws.AdministradorWSClient crearcomision = new AdministradorWSClient();
            crearcomision.createComision(com);
            MessageBox.Show("Comision creado correctamente", "OK", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
        }

      }
}
